
/**
 * This program write all even numbers from 1 to 10
 * 
 * @author Amrita Mukherjee 
 * @version 08/10/2012
 */
public class EvenNumbersFrom1To10
{
    public static void main(String[] args)
    {
        int count = 2;
        System.out.println("Even Numbers from 1 to 10 are: ");
        while(count<=10)
        {
               System.out.println(count);
                count = count+2;
            
        }
    }
}
/*
 * My test Session:
 * Even Numbers from 1 to 10 are: 
2
4
6
8
10

 */